package com.it.system.course_service.controller;

import com.it.system.course_service.service.CourseTypeService;
import com.it.system.educommonapi.entity.CourseType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/course-types")
public class CourseTypeController {
    @Autowired
    private CourseTypeService courseTypeService;

    @GetMapping
    public List<CourseType> getAllCourseTypes() {
        return courseTypeService.getAllCourseTypes();
    }
} 